package com.codeoss.framework.data.metadata;

import java.util.ArrayList;
import java.util.List;

public class Expression {
    private List<Expression> childList=new ArrayList<Expression>();
    
    private String name;
    private String operation;
    private Object value1;
    private Object value2;
    
    private String sql;
    
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getOperation() {
		return operation;
	}
	public void setOperation(String operation) {
		this.operation = operation;
	}
	public Object getValue1() {
		return value1;
	}
	public void setValue1(Object value1) {
		this.value1 = value1;
	}
	public Object getValue2() {
		return value2;
	}
	public void setValue2(Object value2) {
		this.value2 = value2;
	}
    
	public Expression add(Expression expression){
		childList.add(expression);
		return this;
	}
	public String getSQL() {
		return sql;
	}
	public void setSQL(String sql) {
		this.sql = sql;
	}
	
	public List<Expression> getChildList() {
		return childList;
	}
}
